package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsDummy;
import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsDummyExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DirectMailGoodsDummyMapper {
    long countByExample(DirectMailGoodsDummyExample example);

    int deleteByExample(DirectMailGoodsDummyExample example);

    int deleteByPrimaryKey(Integer directMailGoodsId);

    int insert(DirectMailGoodsDummy record);

    int insertSelective(@Param("record") DirectMailGoodsDummy record, @Param("selective") DirectMailGoodsDummy.Column ... selective);

    DirectMailGoodsDummy selectOneByExample(DirectMailGoodsDummyExample example);

    List<DirectMailGoodsDummy> selectByExample(DirectMailGoodsDummyExample example);

    DirectMailGoodsDummy selectByPrimaryKey(Integer directMailGoodsId);

    DirectMailGoodsDummy selectByPrimaryKeyWithLogicalDelete(@Param("directMailGoodsId") Integer directMailGoodsId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DirectMailGoodsDummy record, @Param("example") DirectMailGoodsDummyExample example, @Param("selective") DirectMailGoodsDummy.Column ... selective);

    int updateByExample(@Param("record") DirectMailGoodsDummy record, @Param("example") DirectMailGoodsDummyExample example);

    int updateByPrimaryKeySelective(@Param("record") DirectMailGoodsDummy record, @Param("selective") DirectMailGoodsDummy.Column ... selective);

    int updateByPrimaryKey(DirectMailGoodsDummy record);

    int batchInsert(@Param("list") List<DirectMailGoodsDummy> list);

    int batchInsertSelective(@Param("list") List<DirectMailGoodsDummy> list, @Param("selective") DirectMailGoodsDummy.Column ... selective);

    int logicalDeleteByExample(@Param("example") DirectMailGoodsDummyExample example);

    int logicalDeleteByPrimaryKey(Integer directMailGoodsId);
}